package org.clockworkmages.games.anno1186.situations.camp.options;

import org.clockworkmages.games.anno1186.GameBeansContext;
import org.clockworkmages.games.anno1186.GameStateService;
import org.clockworkmages.games.anno1186.model.option.Option;
import org.clockworkmages.games.anno1186.situations.camp.CampSituation;

public class CampOption
		extends Option {
	private String campId;

	private GameStateService gameStateService;

	public CampOption(String campId) {
		gameStateService = GameBeansContext.getBean(GameStateService.class);
		this.campId = campId;
		this.setLabel("Go to your camp.");
	}

	@Override
	public void select() {

		CampSituation situation = new CampSituation();
		gameStateService.addSituation(situation, true);

		super.select();

	}
}
